import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class MenuController extends GetxController {

  GlobalKey<ScaffoldState> _homegGlobalKey = new GlobalKey();
  GlobalKey<ScaffoldState> get homegGlobalKey => _homegGlobalKey;

  RxInt _currentSelectIndex = 0.obs;
  int get currentSelectIndex => _currentSelectIndex.value;

  void updateSelectIndex(int index) {
    _currentSelectIndex.value = index;
  }

  //菜单选项
  List<String> _menuList = [
    "首页",
    "Flutter",
    "iOS",
    "Java",
    "Linux",
    "生活",
    "前端"
  ];

  List<String> get menuList => _menuList;


}